package com.ml.mall.service.tax;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ml.mall.bean.req.tax.TaxAddDto;
import com.ml.mall.bean.req.tax.TaxDelDto;
import com.ml.mall.bean.req.tax.TaxQueryPageDto;
import com.ml.mall.bean.req.tax.TaxUpdDto;
import com.ml.mall.entity.tax.Tax;

import java.math.BigDecimal;

public interface TaxService extends IService<Tax> {

    /**
     * @description: 实现税率添加
     * @author pl
     * @date 2021/7/5
     * @version 1.0
     */
    int addTax(TaxAddDto taxAddDto);

    /**
     * @description: 实现税务信息修改
     * @author pl
     * @date 2021/7/5
     * @version 1.0
     */
    int updTax(TaxUpdDto taxUpdDto);

    /**
     * @description: 实现税务信息分页查询
     * @author pl
     * @date 2021/7/5
     * @version 1.0
     */
    com.ml.mall.bean.page.Page<Tax> queryByPage(TaxQueryPageDto taxQueryPageDto);

    /**
     * @description: 实现税务信息删除
     * @author pl
     * @date 2021/7/5
     * @version 1.0
     */
     int delTax(TaxDelDto taxDelDto);

     /**
      * @description: 获得当前税费
      * @author kyyang
      * @date 2021/5/26 23:07
      * @version 1.0
      */
     BigDecimal getCurTax();
}
